package com.lwt.service;

import com.lwt.bean.Department;
import com.lwt.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Li Weitong
 * @Date 2021/1/11 20:55
 */
@Service
public class DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    public List<Department> queryDepts() {
        return departmentMapper.selectByExample(null);
    }
}
